home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / sh1_111.zip / CP.SH < prev    next >
Text File  |  1987-08-13  |  493b  |  21 lines

  1. ^  cp - copies files from  source to current directory  ^
  2. if %# == 0
  3.   echo !
  4.   CP copies files from specified source to current directory with
  5.   prompting before copying each file.
  6.   Usage: cp <filespec> ...
  7.   Example: cp c:\Csource\*.c
  8.   !
  9.   exit
  10. endif
  11.  
  12. shx -wd %{SH1FILES}sh1tmp.$$$ %0
  13. for FLINE infile %{SH1FILES}sh1tmp.$$$
  14.   echo Do you want to copy %FLINE [Y/N] ?
  15.   accept YN
  16.   if '%YN' == 'Y' | '%YN' == 'y'
  17.     copy %FLINE
  18.   endif
  19. endfor
  20. del %{SH1FILES}sh1tmp.$$$
  21.